package com.nursery.teacher.entity;

import java.util.ArrayList;
import java.util.List;

public class TeacherInfoExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TeacherInfoExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    /**
     * t_teacher_info null
     */
    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("ID is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("ID is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("ID =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("ID <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("ID >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("ID >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("ID <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("ID <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("ID in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("ID not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("ID between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("ID not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andTeacNameIsNull() {
            addCriterion("TEAC_NAME is null");
            return (Criteria) this;
        }

        public Criteria andTeacNameIsNotNull() {
            addCriterion("TEAC_NAME is not null");
            return (Criteria) this;
        }

        public Criteria andTeacNameEqualTo(String value) {
            addCriterion("TEAC_NAME =", value, "teacName");
            return (Criteria) this;
        }

        public Criteria andTeacNameNotEqualTo(String value) {
            addCriterion("TEAC_NAME <>", value, "teacName");
            return (Criteria) this;
        }

        public Criteria andTeacNameGreaterThan(String value) {
            addCriterion("TEAC_NAME >", value, "teacName");
            return (Criteria) this;
        }

        public Criteria andTeacNameGreaterThanOrEqualTo(String value) {
            addCriterion("TEAC_NAME >=", value, "teacName");
            return (Criteria) this;
        }

        public Criteria andTeacNameLessThan(String value) {
            addCriterion("TEAC_NAME <", value, "teacName");
            return (Criteria) this;
        }

        public Criteria andTeacNameLessThanOrEqualTo(String value) {
            addCriterion("TEAC_NAME <=", value, "teacName");
            return (Criteria) this;
        }

        public Criteria andTeacNameLike(String value) {
            addCriterion("TEAC_NAME like", value, "teacName");
            return (Criteria) this;
        }

        public Criteria andTeacNameNotLike(String value) {
            addCriterion("TEAC_NAME not like", value, "teacName");
            return (Criteria) this;
        }

        public Criteria andTeacNameIn(List<String> values) {
            addCriterion("TEAC_NAME in", values, "teacName");
            return (Criteria) this;
        }

        public Criteria andTeacNameNotIn(List<String> values) {
            addCriterion("TEAC_NAME not in", values, "teacName");
            return (Criteria) this;
        }

        public Criteria andTeacNameBetween(String value1, String value2) {
            addCriterion("TEAC_NAME between", value1, value2, "teacName");
            return (Criteria) this;
        }

        public Criteria andTeacNameNotBetween(String value1, String value2) {
            addCriterion("TEAC_NAME not between", value1, value2, "teacName");
            return (Criteria) this;
        }

        public Criteria andTeacSexIsNull() {
            addCriterion("TEAC_SEX is null");
            return (Criteria) this;
        }

        public Criteria andTeacSexIsNotNull() {
            addCriterion("TEAC_SEX is not null");
            return (Criteria) this;
        }

        public Criteria andTeacSexEqualTo(String value) {
            addCriterion("TEAC_SEX =", value, "teacSex");
            return (Criteria) this;
        }

        public Criteria andTeacSexNotEqualTo(String value) {
            addCriterion("TEAC_SEX <>", value, "teacSex");
            return (Criteria) this;
        }

        public Criteria andTeacSexGreaterThan(String value) {
            addCriterion("TEAC_SEX >", value, "teacSex");
            return (Criteria) this;
        }

        public Criteria andTeacSexGreaterThanOrEqualTo(String value) {
            addCriterion("TEAC_SEX >=", value, "teacSex");
            return (Criteria) this;
        }

        public Criteria andTeacSexLessThan(String value) {
            addCriterion("TEAC_SEX <", value, "teacSex");
            return (Criteria) this;
        }

        public Criteria andTeacSexLessThanOrEqualTo(String value) {
            addCriterion("TEAC_SEX <=", value, "teacSex");
            return (Criteria) this;
        }

        public Criteria andTeacSexLike(String value) {
            addCriterion("TEAC_SEX like", value, "teacSex");
            return (Criteria) this;
        }

        public Criteria andTeacSexNotLike(String value) {
            addCriterion("TEAC_SEX not like", value, "teacSex");
            return (Criteria) this;
        }

        public Criteria andTeacSexIn(List<String> values) {
            addCriterion("TEAC_SEX in", values, "teacSex");
            return (Criteria) this;
        }

        public Criteria andTeacSexNotIn(List<String> values) {
            addCriterion("TEAC_SEX not in", values, "teacSex");
            return (Criteria) this;
        }

        public Criteria andTeacSexBetween(String value1, String value2) {
            addCriterion("TEAC_SEX between", value1, value2, "teacSex");
            return (Criteria) this;
        }

        public Criteria andTeacSexNotBetween(String value1, String value2) {
            addCriterion("TEAC_SEX not between", value1, value2, "teacSex");
            return (Criteria) this;
        }

        public Criteria andTeacAgeIsNull() {
            addCriterion("TEAC_AGE is null");
            return (Criteria) this;
        }

        public Criteria andTeacAgeIsNotNull() {
            addCriterion("TEAC_AGE is not null");
            return (Criteria) this;
        }

        public Criteria andTeacAgeEqualTo(Integer value) {
            addCriterion("TEAC_AGE =", value, "teacAge");
            return (Criteria) this;
        }

        public Criteria andTeacAgeNotEqualTo(Integer value) {
            addCriterion("TEAC_AGE <>", value, "teacAge");
            return (Criteria) this;
        }

        public Criteria andTeacAgeGreaterThan(Integer value) {
            addCriterion("TEAC_AGE >", value, "teacAge");
            return (Criteria) this;
        }

        public Criteria andTeacAgeGreaterThanOrEqualTo(Integer value) {
            addCriterion("TEAC_AGE >=", value, "teacAge");
            return (Criteria) this;
        }

        public Criteria andTeacAgeLessThan(Integer value) {
            addCriterion("TEAC_AGE <", value, "teacAge");
            return (Criteria) this;
        }

        public Criteria andTeacAgeLessThanOrEqualTo(Integer value) {
            addCriterion("TEAC_AGE <=", value, "teacAge");
            return (Criteria) this;
        }

        public Criteria andTeacAgeIn(List<Integer> values) {
            addCriterion("TEAC_AGE in", values, "teacAge");
            return (Criteria) this;
        }

        public Criteria andTeacAgeNotIn(List<Integer> values) {
            addCriterion("TEAC_AGE not in", values, "teacAge");
            return (Criteria) this;
        }

        public Criteria andTeacAgeBetween(Integer value1, Integer value2) {
            addCriterion("TEAC_AGE between", value1, value2, "teacAge");
            return (Criteria) this;
        }

        public Criteria andTeacAgeNotBetween(Integer value1, Integer value2) {
            addCriterion("TEAC_AGE not between", value1, value2, "teacAge");
            return (Criteria) this;
        }

        public Criteria andClassIdIsNull() {
            addCriterion("CLASS_ID is null");
            return (Criteria) this;
        }

        public Criteria andClassIdIsNotNull() {
            addCriterion("CLASS_ID is not null");
            return (Criteria) this;
        }

        public Criteria andClassIdEqualTo(Integer value) {
            addCriterion("CLASS_ID =", value, "classId");
            return (Criteria) this;
        }

        public Criteria andClassIdNotEqualTo(Integer value) {
            addCriterion("CLASS_ID <>", value, "classId");
            return (Criteria) this;
        }

        public Criteria andClassIdGreaterThan(Integer value) {
            addCriterion("CLASS_ID >", value, "classId");
            return (Criteria) this;
        }

        public Criteria andClassIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("CLASS_ID >=", value, "classId");
            return (Criteria) this;
        }

        public Criteria andClassIdLessThan(Integer value) {
            addCriterion("CLASS_ID <", value, "classId");
            return (Criteria) this;
        }

        public Criteria andClassIdLessThanOrEqualTo(Integer value) {
            addCriterion("CLASS_ID <=", value, "classId");
            return (Criteria) this;
        }

        public Criteria andClassIdIn(List<Integer> values) {
            addCriterion("CLASS_ID in", values, "classId");
            return (Criteria) this;
        }

        public Criteria andClassIdNotIn(List<Integer> values) {
            addCriterion("CLASS_ID not in", values, "classId");
            return (Criteria) this;
        }

        public Criteria andClassIdBetween(Integer value1, Integer value2) {
            addCriterion("CLASS_ID between", value1, value2, "classId");
            return (Criteria) this;
        }

        public Criteria andClassIdNotBetween(Integer value1, Integer value2) {
            addCriterion("CLASS_ID not between", value1, value2, "classId");
            return (Criteria) this;
        }

        public Criteria andKindergartenIdIsNull() {
            addCriterion("KINDERGARTEN_ID is null");
            return (Criteria) this;
        }

        public Criteria andKindergartenIdIsNotNull() {
            addCriterion("KINDERGARTEN_ID is not null");
            return (Criteria) this;
        }

        public Criteria andKindergartenIdEqualTo(Integer value) {
            addCriterion("KINDERGARTEN_ID =", value, "kindergartenId");
            return (Criteria) this;
        }

        public Criteria andKindergartenIdNotEqualTo(Integer value) {
            addCriterion("KINDERGARTEN_ID <>", value, "kindergartenId");
            return (Criteria) this;
        }

        public Criteria andKindergartenIdGreaterThan(Integer value) {
            addCriterion("KINDERGARTEN_ID >", value, "kindergartenId");
            return (Criteria) this;
        }

        public Criteria andKindergartenIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("KINDERGARTEN_ID >=", value, "kindergartenId");
            return (Criteria) this;
        }

        public Criteria andKindergartenIdLessThan(Integer value) {
            addCriterion("KINDERGARTEN_ID <", value, "kindergartenId");
            return (Criteria) this;
        }

        public Criteria andKindergartenIdLessThanOrEqualTo(Integer value) {
            addCriterion("KINDERGARTEN_ID <=", value, "kindergartenId");
            return (Criteria) this;
        }

        public Criteria andKindergartenIdIn(List<Integer> values) {
            addCriterion("KINDERGARTEN_ID in", values, "kindergartenId");
            return (Criteria) this;
        }

        public Criteria andKindergartenIdNotIn(List<Integer> values) {
            addCriterion("KINDERGARTEN_ID not in", values, "kindergartenId");
            return (Criteria) this;
        }

        public Criteria andKindergartenIdBetween(Integer value1, Integer value2) {
            addCriterion("KINDERGARTEN_ID between", value1, value2, "kindergartenId");
            return (Criteria) this;
        }

        public Criteria andKindergartenIdNotBetween(Integer value1, Integer value2) {
            addCriterion("KINDERGARTEN_ID not between", value1, value2, "kindergartenId");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("STATUS is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("STATUS is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(String value) {
            addCriterion("STATUS =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(String value) {
            addCriterion("STATUS <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(String value) {
            addCriterion("STATUS >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(String value) {
            addCriterion("STATUS >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(String value) {
            addCriterion("STATUS <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(String value) {
            addCriterion("STATUS <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLike(String value) {
            addCriterion("STATUS like", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotLike(String value) {
            addCriterion("STATUS not like", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<String> values) {
            addCriterion("STATUS in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<String> values) {
            addCriterion("STATUS not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(String value1, String value2) {
            addCriterion("STATUS between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(String value1, String value2) {
            addCriterion("STATUS not between", value1, value2, "status");
            return (Criteria) this;
        }
    }

    /**
     * t_teacher_info
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    /**
     * t_teacher_info null
     */
    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}